import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
const model = new THREE.Group();
const loader = new GLTFLoader();
loader.load('/有光源.glb',(gltf)=>{
    console.log('gltf.scene',gltf.scene);
    gltf.scene.traverse((object)=>{
        if(object.type === "Mesh"){
            object.material = new THREE.MeshLambertMaterial({
                color: object.material.color,
                map:object.material.map
            })
        }
    })
    model.add(gltf.scene.children[0]);
})
export {model};